/* Premium hero — ShopEase (full-width, overlay text) */
:root {
    --hero-height: 650px;
    --hero-font: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --hero-overlay: rgba(0, 0, 0, 0.45);
}

html {
    scroll-behavior: smooth;
}

/* Full-width hero — di luar .container */
.home-hero {
    position: relative;
    width: 100%;
    min-height: var(--hero-height);
    height: var(--hero-height);
    overflow: hidden;
    font-family: var(--hero-font);
    isolation: isolate;
}

/* Background layer */
.home-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.home-hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    animation: zoomBackground 15s ease-in-out infinite alternate;
    will-change: transform;
}

.home-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--hero-overlay);
    pointer-events: none;
}

/* Floating light particles */
.home-hero__particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.home-hero__particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(2px);
    animation: heroParticleFloat 8s ease-in-out infinite;
}

.home-hero__particle--1 {
    width: 120px;
    height: 120px;
    top: 15%;
    right: 12%;
    animation-delay: 0s;
}

.home-hero__particle--2 {
    width: 80px;
    height: 80px;
    bottom: 25%;
    right: 28%;
    animation-delay: 1.5s;
}

.home-hero__particle--3 {
    width: 160px;
    height: 160px;
    top: 40%;
    right: 5%;
    opacity: 0.5;
    animation-delay: 3s;
}

.home-hero__particle--4 {
    width: 60px;
    height: 60px;
    bottom: 18%;
    left: 55%;
    animation-delay: 2s;
}

/* Content on top of image */
.home-hero__content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.home-hero__breadcrumb {
    position: absolute;
    top: 1.5rem;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    animation: fadeUp 1s ease both;
}

.home-hero__breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.25s ease;
}

.home-hero__breadcrumb a:hover {
    color: #ffffff;
}

.home-hero__breadcrumb-sep {
    opacity: 0.55;
}

.home-hero__breadcrumb [aria-current="page"] {
    color: #ffffff;
}

/* Glassmorphism card */
.home-hero__glass {
    max-width: 680px;
    padding: clamp(1.75rem, 4vw, 2.75rem);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: transform 0.2s ease-out;
}

.home-hero__tagline {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
    animation: fadeUp 1.1s ease both;
}

.home-hero__title {
    margin: 0 0 1.25rem;
    font-size: clamp(2rem, 5vw, 60px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
    animation: slideInLeft 1s ease both;
}

.home-hero__title span {
    display: block;
}

.home-hero__desc {
    margin: 0 0 2rem;
    max-width: 540px;
    font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
    font-weight: 400;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
    animation: fadeUp 1.3s ease both;
}

/* Premium CTA button */
.home-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.05rem 2.25rem;
    font-size: 1.0625rem;
    font-weight: 600;
    font-family: var(--hero-font);
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border: none;
    border-radius: 12px;
    box-shadow:
        0 4px 24px rgba(37, 99, 235, 0.45),
        0 0 0 0 rgba(59, 130, 246, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    animation: fadeUp 1.6s ease both;
}

.home-hero__cta:hover {
    color: #ffffff;
    transform: scale(1.05) translateY(-5px);
    box-shadow:
        0 16px 40px rgba(37, 99, 235, 0.55),
        0 0 28px rgba(59, 130, 246, 0.45);
}

.home-hero__cta:active {
    transform: scale(0.98) translateY(-2px);
}

.home-hero__cta-arrow {
    font-size: 1.25rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.home-hero__cta:hover .home-hero__cta-arrow {
    transform: translateX(5px);
}

.main--home {
    padding-top: 0;
}

.main--home .container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Keyframes */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomBackground {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.08);
    }
}

@keyframes heroParticleFloat {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-12px, -18px) scale(1.08);
        opacity: 0.9;
    }
}

/* Tablet */
@media (max-width: 991.98px) {
    :root {
        --hero-height: 500px;
    }

    .home-hero__title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .home-hero__glass {
        max-width: 100%;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    :root {
        --hero-height: 450px;
    }

    .home-hero__content {
        align-items: center;
        text-align: center;
        padding-top: 3.5rem;
    }

    .home-hero__breadcrumb {
        justify-content: center;
        font-size: 0.75rem;
    }

    .home-hero__glass {
        padding: 1.5rem;
        text-align: center;
    }

    .home-hero__desc {
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero__cta {
        width: 100%;
        justify-content: center;
    }

    .home-hero__particle--3,
    .home-hero__particle--4 {
        display: none;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .home-hero__bg-img,
    .home-hero__particle,
    .home-hero__title,
    .home-hero__desc,
    .home-hero__cta,
    .home-hero__tagline,
    .home-hero__breadcrumb {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
